package com.wxy.livebroadcast.entity;

/**
 * 默认系统异常
 *
 * @author caoping
 * @email cao-p@gdfsyhealth.com
 * @date 2020/9/14 15:57
 */
public enum DefaultMsgEnum implements BusinessMessage {
    /**
     * 成功
     */
    SUCCESS(1, "操作成功"),
    FAIL(-1, "操作失败"),

    PARAM_ERROR(-2, "参数有误"),
    ;

    /**
     * 编号
     */
    private Integer code;

    /**
     * 信息
     */
    private String msg;

    DefaultMsgEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
